import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/hidden_danger_investigation_ledger_entity.g.dart';


@JsonSerializable()
class HiddenDangerInvestigationLedgerEntity {

	HiddenDangerInvestigationLedgerEntity();

	factory HiddenDangerInvestigationLedgerEntity.fromJson(Map<String, dynamic> json) => $HiddenDangerInvestigationLedgerEntityFromJson(json);
	List<HiddenDangerInvestigationLedgerRecords>? records;
	int? total;
	int? size;
	int? current;
	List<dynamic>? orders;
	bool? optimizeCountSql;
	bool? searchCount;
	dynamic countId;
	dynamic maxLimit;
	int? pages;

	Map<String, dynamic> toJson() => $HiddenDangerInvestigationLedgerEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class HiddenDangerInvestigationLedgerRecords {

	HiddenDangerInvestigationLedgerRecords();

	factory HiddenDangerInvestigationLedgerRecords.fromJson(Map<String, dynamic> json) => $HiddenDangerInvestigationLedgerRecordsFromJson(json);
	String? id;
	String? planName;
	String? inspectionDepartment;
	String? inspectionDepartmentName;
	String? inspectionType;
	dynamic workDayType;
	dynamic locateMode;
	dynamic allowCrossInspection;
	dynamic doesItExist;
	dynamic inspectionPersonnel;
	dynamic inspectionPersonnelName;
	dynamic createDate;
	dynamic updateDate;
	dynamic createBy;
	dynamic updateBy;
	dynamic createById;
	dynamic updateById;
	dynamic deleted;
	dynamic enableOrNot;
	dynamic scheduledStartTime;
	dynamic plannedEndTime;
	dynamic taskGrade;
	dynamic companyCode;
	dynamic taskIds;
  ///审批状态 0：待发起 1：待审批 2：审批中 3：通过 4：驳回
	int? checkType;
	int? numberOfPoints;
	int? taskNum;
	int? numberOfHiddenHazardsNum;
	int? completionRate;
	int? theNumberOfTasksToBeCompleted;
	int? taskStatus;
	dynamic endTime;
	dynamic unitPlans;
	dynamic tasks;
	int? lateNum;
	int? reExaminationNum;
	String? inspectionTypeName;

	Map<String, dynamic> toJson() => $HiddenDangerInvestigationLedgerRecordsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
